﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AB
{
    public partial class Results : Form
    {
        public Results(TrialBlock trialBlock)
        {
            InitializeComponent();

            int i = 1;
            Trial[] trials = trialBlock.getTrials();
            foreach (Trial t in trials)
            {
                ListViewItem item = new ListViewItem("T" + i++);
                item.SubItems.Add(t.correctTarget.ToString());
                item.SubItems.Add(t.probePosition.ToString());
                item.SubItems.Add(t.correctProbe.ToString());
                resultBox.Items.Add(item);
                //resultBox.Items.Add("T" + i++ + ": Correct target: " + t.correctTarget + " -- Correct probe: " + t.correctProbe);
            }
        }


    }
}
